import { transformRecordToOption } from '@/utils/common';

export const yesOrNoRecord: Record<CommonType.YesOrNo, App.I18n.I18nKey> = {
  Y: 'common.yesOrNo.yes',
  N: 'common.yesOrNo.no'
};

export const yesOrNoOptions = transformRecordToOption(yesOrNoRecord);

export const platformsOptions = [
  { value: -1, label: 'common.all' },
  { value: 0, label: 'common.platforms.shopee' },
  { value: 1, label: 'common.platforms.tiktok' },
  { value: 2, label: 'common.platforms.tokopedia' },
]

export const authStatusOptions = [
  { value: -1, label: 'common.all' },
  { value: 0, label: 'common.authStatus.isOk' },
  { value: 1, label: 'common.authStatus.isNo' },
]

export const orderTypeOptions = [
  { value: -1, label: 'common.all' },
  { value: 0, label: 'page.warehouse.normalOrder' },
  { value: 1, label: 'page.warehouse.saleOrder' },
  { value: 3, label: 'page.warehouse.visualOrder' },
  { value: 4, label: 'page.warehouse.waitPurchase' },
  { value: 5, label: 'page.warehouse.expiring' },
]

export const orderStatusOptions = [
  { value: 0, label: 'page.warehouse.nopay'},
  { value: 1, label: 'page.warehouse.noSend'},
  { value: 2, label: 'page.warehouse.reSend'},
  { value: 3, label: 'page.warehouse.isSend'},
  { value: 4, label: 'page.warehouse.sendTrue'},
  { value: 5, label: 'page.warehouse.cancelSend'},
  { value: 6, label: 'page.warehouse.cancelTrue'},
  { value: 7, label: 'page.warehouse.isBack'},
  { value: 8, label: 'page.warehouse.isTrue'},
  { value: 9, label: 'page.warehouse.shipping'},
]